package com.ljz.entity;

import org.springframework.context.annotation.Bean;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * Created by jiazhang on 2017/4/13.
 */

@Entity
public class Product {

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public Double getPprice() {
        return pprice;
    }

    public void setPprice(Double pprice) {
        this.pprice = pprice;
    }

    public Integer getPremain() {
        return premain;
    }

    public void setPremain(Integer premain) {
        this.premain = premain;
    }

    public Integer getMid() {
        return mid;
    }

    public void setMid(Integer mid) {
        this.mid = mid;
    }

    @Id
    @GeneratedValue

    private Integer pid;
    private String pname;
    private Double pprice;
    private Integer premain;
    private Integer mid;

}
